import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Bus from './bus/bus'/// mitt 总线程引入
import { Toast } from 'vant'
import FastClick from 'fastclick'
import { vant } from './plugin/vant'
import '@/common/rem.js' //px转rem
//import { VueLazyload } from 'vue-lazyload' //图片懒加载  vue3不支持了
//import lazyPlugin from 'vue3-lazy'

import 'vant/lib/index.css';

//解决移动端300ms的延迟
FastClick.attach(document.body)
const app = createApp(App);
app.config.globalProperties.$bus = Bus;    //vue3中的prototype的使用

vant(app)
app.use(store).use(router).use(Toast).mount('#app');
// createApp(App).use(store).use(router).mount('#app')
